package top.whysu.edevice.utils;

import top.whysu.edevice.constant.CodeConstant;
import top.whysu.edevice.dto.generate.ResultDTO;

/**
 * 响应码DTO
 */
public class ResultUtil {

    public static ResultDTO getSuccessResult() {
        return new ResultDTO(CodeConstant.Http.SUCCESS, "操作成功！");
    }

    public static ResultDTO getFailedResult(Integer code, String msg) {
        return new ResultDTO(code, msg);
    }
}
